import Vue from "vue"
import VueRouter from "vue-router"
import Main from "../components/Main";
import Problem from "../components/material-problem"

//安装路由
Vue.use(VueRouter)

//配置导出路由
export default new VueRouter({
  routes: [
    //新路由
    {
      path: '/problem',
      name: 'problem',
      //跳转的组件
      component: Problem
    },
    {
      // 路由路径
      path: '/main',
      name: 'main',
      //跳转的组件
      component: Main
    },
  ]
});
